package com.zh.behavior.service.impl;


import com.zh.behavior.dao.UserBehaviorDao;
import com.zh.behavior.domain.UserBehaviorDO;
import com.zh.behavior.service.UserBehaviorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class UserBehaviorServiceImpl implements UserBehaviorService {
	@Autowired
	private UserBehaviorDao userBehaviorDao;
	
	@Override
	public UserBehaviorDO get(String id){
		return userBehaviorDao.get(id);
	}
	
	@Override
	public List<UserBehaviorDO> list(Map<String, Object> map){
		return userBehaviorDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return userBehaviorDao.count(map);
	}
	
	@Override
	public int save(UserBehaviorDO userBehavior){
		return userBehaviorDao.save(userBehavior);
	}
	
	@Override
	public int update(UserBehaviorDO userBehavior){
		return userBehaviorDao.update(userBehavior);
	}
	
	@Override
	public int remove(String id){
		return userBehaviorDao.remove(id);
	}
	
	@Override
	public int batchRemove(String[] ids){
		return userBehaviorDao.batchRemove(ids);
	}

	@Override
	public List<UserBehaviorDO> getAlll(UserBehaviorDO userBehavior) {
		return userBehaviorDao.getAlll(userBehavior);
	}

	@Override
	public List<UserBehaviorDO> getUserBehaviorByday(Map<String, Object> map){return userBehaviorDao.getUserBehaviorByday(map);}

	@Override
	public int getUserBehaviorBydaycount(Map<String, Object> map){return userBehaviorDao.getUserBehaviorBydaycount(map);}

	@Override
	public List<UserBehaviorDO> getUserBehaviorBetwDay(UserBehaviorDO userBehavior){return userBehaviorDao.getUserBehaviorBetwDay(userBehavior);}

	@Override
	public UserBehaviorDO getUserBehaviorTop1(UserBehaviorDO userBehavior){return userBehaviorDao.getUserBehaviorTop1(userBehavior);}
}
